package Book;

public class BookList {
    public Book[] books = new Book[10];
    private int useSized;            //书的数量
    public BookList(){
         this.books[0] = new Book("三国演义","罗贯中","小说",25);
         this.books[1] = new Book("西游记","吴承恩","小说",40);
         this.books[2] = new Book("水浒传","施耐庵","小说",35);
         this.useSized = 3;
    }
    public Book getBook(int pos){
        return this.books[pos];
    }
    public void setBooks(Book books,int pos){
        this.books[pos] = books;
    }
    public int getUseSized() {
        return useSized;
    }

    public void setUseSized(int useSized) {
        this.useSized = useSized;
    }
}
